// 在这里封装请求的函数
import request from "@/utils/request";
// 注册
export const registerApi = (data) =>
  request({
    url: "/user/registered",
    method: "post",
    data: data,
  });
  // 登录
  export const loginApi = (data) =>
  request({
    url: "/user/login",
    method: "post",
    data: data,
  });
